package com.css.dzj.dzjdzqs.modules.datafromzfjg.entity;

import javax.persistence.*;
import java.util.Objects;
//联合监管任务反馈关联表
@Entity
@Table(name = "JG_LHJG_RWFKGL", schema = "DZJJH", catalog = "")
public class JgLhjgRwfkglEntity {
    private String taskno;//任务编码
    private String actionCode;//监管行为编号
    private String actionType;//监管行为类型
    private String enterpriseCreditcode;//检查对象统一社会信用代码
    private String uuid;//主键id

    @Basic
    @Column(name = "taskno")
    public String getTaskno() {
        return taskno;
    }

    public void setTaskno(String taskno) {
        this.taskno = taskno;
    }

    @Basic
    @Column(name = "action_code")
    public String getActionCode() {
        return actionCode;
    }

    public void setActionCode(String actionCode) {
        this.actionCode = actionCode;
    }

    @Basic
    @Column(name = "action_Type")
    public String getActionType() {
        return actionType;
    }

    public void setActionType(String actionType) {
        this.actionType = actionType;
    }

    @Basic
    @Column(name = "enterprise_creditcode")
    public String getEnterpriseCreditcode() {
        return enterpriseCreditcode;
    }

    public void setEnterpriseCreditcode(String enterpriseCreditcode) {
        this.enterpriseCreditcode = enterpriseCreditcode;
    }

    @Id
    @Column(name = "Uuid")
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgLhjgRwfkglEntity that = (JgLhjgRwfkglEntity) o;
        return Objects.equals(taskno, that.taskno) &&
                Objects.equals(actionCode, that.actionCode) &&
                Objects.equals(actionType, that.actionType) &&
                Objects.equals(enterpriseCreditcode, that.enterpriseCreditcode) &&
                Objects.equals(uuid, that.uuid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(taskno, actionCode, actionType, enterpriseCreditcode, uuid);
    }
}
